package com.wuchao.annotation;

import com.sun.org.apache.bcel.internal.generic.NEW;

@FunctionalInterface//lamb8 ->只能有一个方法的接口
 interface Show1 {
    public void show();
   // public void ss();
}

class ShowS{
     public static void say(Show1 show1){
         show1.show();
     }
}
//class A implements Show1{
//    @Override
//    public void show() {
//        System.out.println("烦躁，搞这么复杂");
//    }
//}
class B{
    @Deprecated
    void say(){

    }
}
public class T {//chatgpt
    public static void main(String[] args) {
//        ShowS.say(()->{
//        });
//        new B().say();
        B b = new B();


    }
}
